package com.mhy.dump;

import android.util.Log;

/**
 * Native  https://www.jianshu.com/p/dffe3a9e2759   Sandhook使用 so
 */
public class Native {
    public static void log(String txt) {
        Log.i("dumpdex","Native-> " + txt);
    }
    static {
        try {
            System.loadLibrary("nativeDump");//静态加载so文件
//            System.load("/data/local/tmp/libnativeDump.so");//动态加载so文件
            log("loaded libnativeDump.so succeed");
        } catch (Throwable t) {
//            System.load("/data/local/tmp/libnativeDump64.so");
            log("loaded libnativeDump.so fail");
        }
    }

    public static native void dump(String packageName);
}
